using System;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;

namespace ClientTools.Client.Controls.Packager.PackageClasses
{
    public class DocumentSet
    {
        private string _importMode = "root";
        [XmlAttribute("importMode")]
        public string ImportMode
        {
            get { return _importMode; }
            set { _importMode = value; }
        }

        private NodeCollection _nodes = new NodeCollection();
        [XmlElement("node")]
        public NodeCollection Nodes
        {
            get { return _nodes; }
            set { _nodes = value; }
        }
	
        //private string _content;
        //[XmlAnyElement]
        //public string Content
        //{
        //    get { return _content; }
        //    set { _content = value; }
        //}

        ////[XmlAnyElement]

        //[XmlText]
        //public XmlElement[] Content
        //{
        //    get
        //    {
        //        XmlDataDocument doc = new XmlDataDocument();
        //        XmlCDataSection cd = doc.CreateCDataSection(_content);
        //        return cd;
        //    }
        //    set { _content = value.Value; }
        //}
    }       
}
